package com.ruoyi.worker.mapper.v2;

import com.ruoyi.worker.domain.v2.RzAttendanceSumDailyRecordDetailHistoryV2Domain;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RzAttendanceSumDailyRecordDetailHistoryV2Mapper {

    /**
     * @author: 陈宇寰
     * @date: 2022-01-04 09:34:13
     * @params:
     * @return:
     * @description: 保存历史记录
     */
    void saveHistory(List<RzAttendanceSumDailyRecordDetailHistoryV2Domain> datas);


    /**
     * @author: 陈宇寰
     * @date: 2022-01-10 14:56:11
     * @params:
     * @return:
     * @description: 获取历史记录
     */
    List<RzAttendanceSumDailyRecordDetailHistoryV2Domain> getHistories(@Param("date") String date, @Param("idCards") List<String> idCards);

    /**
     * @author: 陈宇寰
     * @date: 2022-01-10 14:56:21
     * @params:
     * @return:
     * @description: 修改历史表中的身份证号
     */
    void updateIdCardWhenBaseUpdate(@Param("oldIdCard") String oldIdCard, @Param("newIdCard") String newIdCard);
}
